package com.eagle.view.activity.adapter;

import android.content.Context;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.eagle.R;
import com.eagle.data.bean.LiveMessage;

import org.androidannotations.annotations.EViewGroup;
import org.androidannotations.annotations.ViewById;

/**
 * Created by gc on 2016/12/31.
 */
@EViewGroup(R.layout.layout_message_item)
public class MessageItemView extends LinearLayout {

    @ViewById(R.id.tv_message)
    TextView mTvMessage;

    public MessageItemView(Context context) {
        super(context);
    }

    public void bind(LiveMessage msg) {
        mTvMessage.setText(msg.message);
    }
}
